home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •The Arcade• / Spacestation Pheta 2.0 ••••• / Spacestation Pheta / Spacestation Pheta.rsrc / CODE_5.txt < prev    next >
Text File  |  1990-09-16  |  33KB  |  589 lines

  1. # near model CODE resource
  2. # jump table entries: 816-816 (1 of them)
  3. fn00000000:
  4. 00000000  4E56 FEEE                link       A6, -0x0112
  5. 00000004  2F07                     move.l     -[A7], D7
  6. 00000006  2F2E 000E                move.l     -[A7], [A6 + 0xE]
  7. 0000000A  3F3C 0001                move.w     -[A7], 0x1
  8. 0000000E  3F2E 000C                move.w     -[A7], [A6 + 0xC]
  9. 00000012  4EAD 025A                jsr        [A5 + 0x25A /* export_71 */]
  10. 00000016  206E 0008                movea.l    A0, [A6 + 0x8]
  11. 0000001A  3028 000C                move.w     D0, [A0 + 0xC]
  12. 0000001E  6052                     bra        +0x54 /* 00000072 */
  13. label00000020:
  14. 00000020  3F3C 000A                move.w     -[A7], 0xA /* '\n' */
  15. 00000024  A88A                     syscall    TextSize
  16. 00000026  1D7C 0001 FFEC           move.b     [A6 - 0x14], 0x1
  17. 0000002C  7000                     moveq.l    D0, 0x00
  18. 0000002E  102E FFEC                move.b     D0, [A6 - 0x14]
  19. 00000032  3F00                     move.w     -[A7], D0
  20. 00000034  A888                     syscall    TextFace
  21. 00000036  4247                     clr.w      D7
  22. label00000038:
  23. 00000038  3007                     move.w     D0, D7
  24. 0000003A  C1FC 0054                muls.w     D0, 0x54 /* 'T' */
  25. 0000003E  0640 0030                addi.w     D0, 0x30 /* '0' */
  26. 00000042  3F00                     move.w     -[A7], D0
  27. 00000044  3F3C 0053                move.w     -[A7], 0x53 /* 'S' */
  28. 00000048  A893                     syscall    MoveTo
  29. 0000004A  486E FEEE                pea.l      [A6 - 0x112]
  30. 0000004E  206D FAD6                movea.l    A0, [A5 - 0x52A]
  31. 00000052  2050                     movea.l    A0, [A0]
  32. 00000054  3007                     move.w     D0, D7
  33. 00000056  D040                     add.w      D0, D0
  34. 00000058  3F30 0000                move.w     -[A7], [A0 + D0.w]
  35. 0000005C  4EAD 020A                jsr        [A5 + 0x20A /* export_61 */]
  36. 00000060  584F                     addq.w     A7, 4
  37. 00000062  486E FEEE                pea.l      [A6 - 0x112]
  38. 00000066  A884                     syscall    DrawString
  39. 00000068  5247                     addq.w     D7, 1
  40. 0000006A  0C47 0004                cmpi.w     D7, 0x4
  41. 0000006E  6FC8                     ble        -0x36 /* 00000038 */
  42. 00000070  6006                     bra        +0x8 /* 00000078 */
  43. label00000072:
  44. 00000072  0640 F826                addi.w     D0, 0xF826
  45. 00000076  67A8                     beq        -0x56 /* 00000020 */
  46. label00000078:
  47. 00000078  2E1F                     move.l     D7, [A7]+
  48. 0000007A  4E5E                     unlink     A6
  49. 0000007C  205F                     movea.l    A0, [A7]+
  50. 0000007E  4FEF 000A                lea.l      A7, [A7 + 0xA]
  51. 00000082  4ED0                     jmp        [A0]
  52. fn00000084:
  53. 00000084  4E56 FEC6                link       A6, -0x013A
  54. 00000088  48E7 0F38                movem.l    -[A7], D4,D5,D6,D7,A2,A3,A4
  55. 0000008C  3C2E 000E                move.w     D6, [A6 + 0xE]
  56. 00000090  3A2E 000C                move.w     D5, [A6 + 0xC]
  57. 00000094  206D FCE2                movea.l    A0, [A5 - 0x31E]
  58. 00000098  2F10                     move.l     -[A7], [A0]
  59. 0000009A  A851                     syscall    SetCursor
  60. 0000009C  2F2D F8AE                move.l     -[A7], [A5 - 0x752]
  61. 000000A0  4227                     clr.b      -[A7]
  62. 000000A2  A91C                     syscall    HiliteWindow
  63. 000000A4  594F                     subq.w     A7, 4
  64. 000000A6  3F3C 03F0                move.w     -[A7], 0x3F0
  65. 000000AA  42A7                     clr.l      -[A7]
  66. 000000AC  70FF                     moveq.l    D0, 0xFFFFFFFF
  67. 000000AE  2F00                     move.l     -[A7], D0
  68. 000000B0  A97C                     syscall    GetNewDialog
  69. 000000B2  245F                     movea.l    A2, [A7]+
  70. 000000B4  2F0A                     move.l     -[A7], A2
  71. 000000B6  A981                     syscall    DrawDialog
  72. 000000B8  594F                     subq.w     A7, 4
  73. 000000BA  7078                     moveq.l    D0, 0x78
  74. 000000BC  2F00                     move.l     -[A7], D0
  75. 000000BE  4EAD 00EA                jsr        [A5 + 0xEA /* export_25 */]
  76. 000000C2  285F                     movea.l    A4, [A7]+
  77. 000000C4  554F                     subq.w     A7, 2
  78. 000000C6  4EAD 0202                jsr        [A5 + 0x202 /* export_60 */]
  79. 000000CA  101F                     move.b     D0, [A7]+
  80. 000000CC  5300                     subq.b     D0, 1
  81. 000000CE  6700 0138                beq        +0x13A /* 00000208 */
  82. 000000D2  4EAD 01F2                jsr        [A5 + 0x1F2 /* export_58 */]
  83. 000000D6  2F0C                     move.l     -[A7], A4
  84. 000000D8  4EAD 01D2                jsr        [A5 + 0x1D2 /* export_54 */]
  85. 000000DC  554F                     subq.w     A7, 2
  86. 000000DE  2F0C                     move.l     -[A7], A4
  87. 000000E0  4EAD 01DA                jsr        [A5 + 0x1DA /* export_55 */]
  88. 000000E4  181F                     move.b     D4, [A7]+
  89. 000000E6  594F                     subq.w     A7, 4
  90. 000000E8  2F0C                     move.l     -[A7], A4
  91. 000000EA  42A7                     clr.l      -[A7]
  92. 000000EC  42A7                     clr.l      -[A7]
  93. 000000EE  4EAD 01B2                jsr        [A5 + 0x1B2 /* export_50 */]
  94. 000000F2  265F                     movea.l    A3, [A7]+
  95. 000000F4  3F3C 0003                move.w     -[A7], 0x3
  96. 000000F8  A887                     syscall    TextFont
  97. 000000FA  3E06                     move.w     D7, D6
  98. label000000FC:
  99. 000000FC  554F                     subq.w     A7, 2
  100. 000000FE  4EAD 01EA                jsr        [A5 + 0x1EA /* export_57 */]
  101. 00000102  4A5F                     tst.w      [A7]+
  102. 00000104  6600 00BE                bne        +0xC0 /* 000001C4 */
  103. 00000108  2F0B                     move.l     -[A7], A3
  104. 0000010A  42A7                     clr.l      -[A7]
  105. 0000010C  4EAD 01C2                jsr        [A5 + 0x1C2 /* export_52 */]
  106. 00000110  554F                     subq.w     A7, 2
  107. 00000112  4EAD 01EA                jsr        [A5 + 0x1EA /* export_57 */]
  108. 00000116  4A5F                     tst.w      [A7]+
  109. 00000118  6600 00A4                bne        +0xA6 /* 000001BE */
  110. label0000011C:
  111. 0000011C  594F                     subq.w     A7, 4
  112. 0000011E  3F07                     move.w     -[A7], D7
  113. 00000120  A9BC                     syscall    GetPicture
  114. 00000122  3007                     move.w     D0, D7
  115. 00000124  9046                     sub.w      D0, D6
  116. 00000126  48C0                     ext.l      D0
  117. 00000128  81FC 0002                divs.w     D0, 0x2
  118. 0000012C  4840                     swap.w     D0
  119. 0000012E  C1FC 0154                muls.w     D0, 0x154
  120. 00000132  3F00                     move.w     -[A7], D0
  121. 00000134  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  122. 00000138  4EBA FEC6                jsr        [PC - 0x13A /* 00000000 */]
  123. 0000013C  3007                     move.w     D0, D7
  124. 0000013E  9046                     sub.w      D0, D6
  125. 00000140  48C0                     ext.l      D0
  126. 00000142  81FC 0002                divs.w     D0, 0x2
  127. 00000146  4840                     swap.w     D0
  128. 00000148  5340                     subq.w     D0, 1
  129. 0000014A  57C0                     seq        D0
  130. 0000014C  BE45                     cmp.w      D7, D5
  131. 0000014E  57C1                     seq        D1
  132. 00000150  8001                     or.b       D0, D1
  133. 00000152  674E                     beq        +0x50 /* 000001A2 */
  134. 00000154  3F3C 000A                move.w     -[A7], 0xA /* '\n' */
  135. 00000158  A88A                     syscall    TextSize
  136. 0000015A  1D7C 0001 FFC4           move.b     [A6 - 0x3C], 0x1
  137. 00000160  7000                     moveq.l    D0, 0x00
  138. 00000162  102E FFC4                move.b     D0, [A6 - 0x3C]
  139. 00000166  3F00                     move.w     -[A7], D0
  140. 00000168  A888                     syscall    TextFace
  141. 0000016A  3F3C 00C8                move.w     -[A7], 0xC8
  142. 0000016E  3007                     move.w     D0, D7
  143. 00000170  9046                     sub.w      D0, D6
  144. 00000172  48C0                     ext.l      D0
  145. 00000174  81FC 0002                divs.w     D0, 0x2
  146. 00000178  4840                     swap.w     D0
  147. 0000017A  C1FC 0154                muls.w     D0, 0x154
  148. 0000017E  0640 0136                addi.w     D0, 0x136
  149. 00000182  3F00                     move.w     -[A7], D0
  150. 00000184  A893                     syscall    MoveTo
  151. 00000186  486E FEC6                pea.l      [A6 - 0x13A]
  152. 0000018A  487A 00B6                pea.l      [PC + 0xB6 /* 00000242, value 0x13537061, pstring "Spacestation Pheta " */]
  153. 0000018E  487A 009E                pea.l      [PC + 0x9E /* 0000022E, value 0x12A93139 */]
  154. 00000192  3F3C 0002                move.w     -[A7], 0x2
  155. 00000196  4EAD 0032                jsr        [A5 + 0x32 /* export_2 */]
  156. 0000019A  584F                     addq.w     A7, 4
  157. 0000019C  486E FEC6                pea.l      [A6 - 0x13A]
  158. 000001A0  A884                     syscall    DrawString
  159. label000001A2:
  160. 000001A2  5247                     addq.w     D7, 1
  161. 000001A4  3007                     move.w     D0, D7
  162. 000001A6  9046                     sub.w      D0, D6
  163. 000001A8  48C0                     ext.l      D0
  164. 000001AA  81FC 0002                divs.w     D0, 0x2
  165. 000001AE  4840                     swap.w     D0
  166. 000001B0  4A40                     tst.w      D0
  167. 000001B2  57C0                     seq        D0
  168. 000001B4  BE45                     cmp.w      D7, D5
  169. 000001B6  5EC1                     sgt        D1
  170. 000001B8  8001                     or.b       D0, D1
  171. 000001BA  6700 FF60                beq        -0x9E /* 0000011C */
  172. label000001BE:
  173. 000001BE  2F0B                     move.l     -[A7], A3
  174. 000001C0  4EAD 01CA                jsr        [A5 + 0x1CA /* export_53 */]
  175. label000001C4:
  176. 000001C4  BE45                     cmp.w      D7, D5
  177. 000001C6  6F00 FF34                ble        -0xCA /* 000000FC */
  178. 000001CA  2F0B                     move.l     -[A7], A3
  179. 000001CC  4EAD 01BA                jsr        [A5 + 0x1BA /* export_51 */]
  180. 000001D0  554F                     subq.w     A7, 2
  181. 000001D2  4EAD 01EA                jsr        [A5 + 0x1EA /* export_57 */]
  182. 000001D6  4A5F                     tst.w      [A7]+
  183. 000001D8  57C0                     seq        D0
  184. 000001DA  2054                     movea.l    A0, [A4]
  185. 000001DC  1228 0044                move.b     D1, [A0 + 0x44]
  186. 000001E0  4881                     ext.w      D1
  187. 000001E2  5341                     subq.w     D1, 1
  188. 000001E4  57C1                     seq        D1
  189. 000001E6  C001                     and.b      D0, D1
  190. 000001E8  6710                     beq        +0x12 /* 000001FA */
  191. 000001EA  2F0C                     move.l     -[A7], A4
  192. 000001EC  42A7                     clr.l      -[A7]
  193. 000001EE  42A7                     clr.l      -[A7]
  194. 000001F0  42A7                     clr.l      -[A7]
  195. 000001F2  486E FFCC                pea.l      [A6 - 0x34]
  196. 000001F6  4EAD 01E2                jsr        [A5 + 0x1E2 /* export_56 */]
  197. label000001FA:
  198. 000001FA  4EAD 0212                jsr        [A5 + 0x212 /* export_62 */]
  199. 000001FE  2F0C                     move.l     -[A7], A4
  200. 00000200  4EAD 00F2                jsr        [A5 + 0xF2 /* export_26 */]
  201. 00000204  4EAD 01FA                jsr        [A5 + 0x1FA /* export_59 */]
  202. label00000208:
  203. 00000208  2F2D F8AE                move.l     -[A7], [A5 - 0x752]
  204. 0000020C  A873                     syscall    SetPort
  205. 0000020E  2F0A                     move.l     -[A7], A2
  206. 00000210  A983                     syscall    DisposeDialog
  207. 00000212  2F2D F8AE                move.l     -[A7], [A5 - 0x752]
  208. 00000216  1F3C 0001                move.b     -[A7], 0x1
  209. 0000021A  A91C                     syscall    HiliteWindow
  210. 0000021C  486D FF5E                pea.l      [A5 - 0xA2]
  211. 00000220  A851                     syscall    SetCursor
  212. 00000222  4CDF 1CF0                movem.l    D4,D5,D6,D7,A2,A3,A4, [A7]+
  213. 00000226  4E5E                     unlink     A6
  214. 00000228  205F                     movea.l    A0, [A7]+
  215. 0000022A  504F                     addq.w     A7, 8
  216. 0000022C  4ED0                     jmp        [A0]
  217. 0000022E  12A9 3139                move.b     [A1], [A1 + 0x3139]
  218. 00000232  3839 2054 2654           move.w     D4, [0x20542654]
  219. 00000238  2053                     movea.l    A0, [A3]
  220. 0000023A  6F66                     ble        +0x68 /* 000002A2 */
  221. 0000023C  7477                     moveq.l    D2, 0x77
  222. 0000023E  6172                     bsr        +0x74 /* 000002B2 */
  223. 00000240  6500 1353                bcs        +0x1355 /* 00001595 */
  224. 00000244  7061                     moveq.l    D0, 0x61
  225. 00000246  6365                     bls        +0x67 /* 000002AD */
  226. 00000248  7374                     moveq.l    D1, 0x74
  227. 0000024A  6174                     bsr        +0x76 /* 000002C0 */
  228. 0000024C  696F                     bvs        +0x71 /* 000002BD */
  229. 0000024E  6E20                     bgt        +0x22 /* 00000270 */
  230. 00000250  5068 6574                addq.w     [A0 + 0x6574], 8
  231. 00000254  6120                     bsr        +0x22 /* 00000276 */
  232. export_102:
  233. 00000256  4E56 FFA4                link       A6, -0x005C
  234. 0000025A  48E7 1F38                movem.l    -[A7], D3,D4,D5,D6,D7,A2,A3,A4
  235. 0000025E  3C2E 0008                move.w     D6, [A6 + 0x8]
  236. 00000262  206D F8AE                movea.l    A0, [A5 - 0x752]
  237. 00000266  4868 0010                pea.l      [A0 + 0x10]
  238. 0000026A  A8A3                     syscall    EraseRect
  239. 0000026C  486E FFE8                pea.l      [A6 - 0x18]
  240. label00000270:
  241. 00000270  3F3C 000F                move.w     -[A7], 0xF
  242. 00000274  3F3C 0129                move.w     -[A7], 0x129
  243. // begin alternate branch 00000276-00000280
  244. fn00000276:
  245. 00000276  0129 3F3C                btst       [A1 + 0x3F3C], D0
  246. 0000027A  0051 3F3C                ori.w      [A1], 0x3F3C /* '?<' */
  247. 0000027E  013D                     btst       <<invalid special address>>, D0
  248. // end alternate branch 00000276-00000280
  249. fn00000276: // (misaligned)
  250. 00000278  3F3C 0051                move.w     -[A7], 0x51 /* 'Q' */
  251. 0000027C  3F3C 013D                move.w     -[A7], 0x13D
  252. 00000280  A8A7                     syscall    SetRect
  253. 00000282  594F                     subq.w     A7, 4
  254. 00000284  2F2D F8AE                move.l     -[A7], [A5 - 0x752]
  255. 00000288  486E FFE8                pea.l      [A6 - 0x18]
  256. 0000028C  487A 0346                pea.l      [PC + 0x346 /* 000005D4, value 0x44E6578, pstring "Next" */]
  257. 00000290  1F3C 0001                move.b     -[A7], 0x1
  258. 00000294  4267                     clr.w      -[A7]
  259. 00000296  4267                     clr.w      -[A7]
  260. 00000298  4267                     clr.w      -[A7]
  261. 0000029A  4267                     clr.w      -[A7]
  262. 0000029C  42A7                     clr.l      -[A7]
  263. 0000029E  A954                     syscall    NewControl
  264. 000002A0  285F                     movea.l    A4, [A7]+
  265. label000002A2:
  266. 000002A2  486E FFE8                pea.l      [A6 - 0x18]
  267. 000002A6  3F3C 005A                move.w     -[A7], 0x5A /* 'Z' */
  268. 000002AA  3F3C 0129                move.w     -[A7], 0x129
  269. 000002AE  3F3C 009C                move.w     -[A7], 0x9C
  270. fn000002B2:
  271. 000002B2  3F3C 013D                move.w     -[A7], 0x13D
  272. 000002B6  A8A7                     syscall    SetRect
  273. 000002B8  594F                     subq.w     A7, 4
  274. 000002BA  2F2D F8AE                move.l     -[A7], [A5 - 0x752]
  275. 000002BE  486E FFE8                pea.l      [A6 - 0x18]
  276. // begin alternate branch 000002C0-000002C2
  277. fn000002C0:
  278. 000002C0  FFE8                     .invalid   <<F/7/7>>
  279. // end alternate branch 000002C0-000002C2
  280. fn000002C0: // (misaligned)
  281. 000002C2  487A 0306                pea.l      [PC + 0x306 /* 000005CA, value 0x8507265, pstring "Previous" */]
  282. 000002C6  1F3C 0001                move.b     -[A7], 0x1
  283. 000002CA  4267                     clr.w      -[A7]
  284. 000002CC  4267                     clr.w      -[A7]
  285. 000002CE  4267                     clr.w      -[A7]
  286. 000002D0  4267                     clr.w      -[A7]
  287. 000002D2  7001                     moveq.l    D0, 0x01
  288. 000002D4  2F00                     move.l     -[A7], D0
  289. 000002D6  A954                     syscall    NewControl
  290. 000002D8  265F                     movea.l    A3, [A7]+
  291. 000002DA  486E FFE8                pea.l      [A6 - 0x18]
  292. 000002DE  3F3C 0124                move.w     -[A7], 0x124
  293. 000002E2  3F3C 0129                move.w     -[A7], 0x129
  294. 000002E6  3F3C 0166                move.w     -[A7], 0x166
  295. 000002EA  3F3C 013D                move.w     -[A7], 0x13D
  296. 000002EE  A8A7                     syscall    SetRect
  297. 000002F0  594F                     subq.w     A7, 4
  298. 000002F2  2F2D F8AE                move.l     -[A7], [A5 - 0x752]
  299. 000002F6  486E FFE8                pea.l      [A6 - 0x18]
  300. 000002FA  487A 02C8                pea.l      [PC + 0x2C8 /* 000005C4, value 0x5507269, pstring "Print" */]
  301. 000002FE  1F3C 0001                move.b     -[A7], 0x1
  302. 00000302  4267                     clr.w      -[A7]
  303. 00000304  4267                     clr.w      -[A7]
  304. 00000306  4267                     clr.w      -[A7]
  305. 00000308  4267                     clr.w      -[A7]
  306. 0000030A  7802                     moveq.l    D4, 0x02
  307. 0000030C  2F04                     move.l     -[A7], D4
  308. 0000030E  A954                     syscall    NewControl
  309. 00000310  281F                     move.l     D4, [A7]+
  310. 00000312  486E FFE8                pea.l      [A6 - 0x18]
  311. 00000316  3F3C 016F                move.w     -[A7], 0x16F
  312. 0000031A  3F3C 0129                move.w     -[A7], 0x129
  313. 0000031E  3F3C 01B1                move.w     -[A7], 0x1B1
  314. 00000322  3F3C 013D                move.w     -[A7], 0x13D
  315. 00000326  A8A7                     syscall    SetRect
  316. 00000328  594F                     subq.w     A7, 4
  317. 0000032A  2F2D F8AE                move.l     -[A7], [A5 - 0x752]
  318. 0000032E  486E FFE8                pea.l      [A6 - 0x18]
  319. 00000332  487A 0286                pea.l      [PC + 0x286 /* 000005BA, value 0x9507269 '\tPri', pstring "Print All" */]
  320. 00000336  1F3C 0001                move.b     -[A7], 0x1
  321. 0000033A  4267                     clr.w      -[A7]
  322. 0000033C  4267                     clr.w      -[A7]
  323. 0000033E  4267                     clr.w      -[A7]
  324. 00000340  4267                     clr.w      -[A7]
  325. 00000342  7A03                     moveq.l    D5, 0x03
  326. 00000344  2F05                     move.l     -[A7], D5
  327. 00000346  A954                     syscall    NewControl
  328. 00000348  2A1F                     move.l     D5, [A7]+
  329. 0000034A  486E FFE8                pea.l      [A6 - 0x18]
  330. 0000034E  3F3C 00BA                move.w     -[A7], 0xBA
  331. 00000352  3F3C 0129                move.w     -[A7], 0x129
  332. 00000356  3F3C 0106                move.w     -[A7], 0x106
  333. 0000035A  3F3C 013D                move.w     -[A7], 0x13D
  334. 0000035E  A8A7                     syscall    SetRect
  335. 00000360  594F                     subq.w     A7, 4
  336. 00000362  2F2D F8AE                move.l     -[A7], [A5 - 0x752]
  337. 00000366  486E FFE8                pea.l      [A6 - 0x18]
  338. 0000036A  487A 0248                pea.l      [PC + 0x248 /* 000005B4, value 0x4446F6E, pstring "Done" */]
  339. 0000036E  1F3C 0001                move.b     -[A7], 0x1
  340. 00000372  4267                     clr.w      -[A7]
  341. 00000374  4267                     clr.w      -[A7]
  342. 00000376  4267                     clr.w      -[A7]
  343. 00000378  4267                     clr.w      -[A7]
  344. 0000037A  7004                     moveq.l    D0, 0x04
  345. 0000037C  2F00                     move.l     -[A7], D0
  346. 0000037E  A954                     syscall    NewControl
  347. 00000380  245F                     movea.l    A2, [A7]+
  348. 00000382  486E FFE8                pea.l      [A6 - 0x18]
  349. 00000386  4267                     clr.w      -[A7]
  350. 00000388  4267                     clr.w      -[A7]
  351. 0000038A  4267                     clr.w      -[A7]
  352. 0000038C  4267                     clr.w      -[A7]
  353. 0000038E  A8A7                     syscall    SetRect
  354. 00000390  594F                     subq.w     A7, 4
  355. 00000392  42A7                     clr.l      -[A7]
  356. 00000394  486E FFE8                pea.l      [A6 - 0x18]
  357. 00000398  487A 0218                pea.l      [PC + 0x218 /* 000005B2, value 0x120444, cstring "" */]
  358. 0000039C  1F3C 0001                move.b     -[A7], 0x1
  359. 000003A0  3F3C 0001                move.w     -[A7], 0x1
  360. 000003A4  70FF                     moveq.l    D0, 0xFFFFFFFF
  361. 000003A6  2F00                     move.l     -[A7], D0
  362. 000003A8  4227                     clr.b      -[A7]
  363. 000003AA  42A7                     clr.l      -[A7]
  364. 000003AC  A913                     syscall    NewWindow
  365. 000003AE  2D5F FFB6                move.l     [A6 - 0x4A], [A7]+
  366. 000003B2  2F2D F8AE                move.l     -[A7], [A5 - 0x752]
  367. 000003B6  1F3C 0001                move.b     -[A7], 0x1
  368. 000003BA  A91C                     syscall    HiliteWindow
  369. 000003BC  486E FFE8                pea.l      [A6 - 0x18]
  370. 000003C0  4267                     clr.w      -[A7]
  371. 000003C2  4267                     clr.w      -[A7]
  372. 000003C4  3F3C 01C0                move.w     -[A7], 0x1C0
  373. 000003C8  3F3C 0126                move.w     -[A7], 0x126
  374. 000003CC  A8A7                     syscall    SetRect
  375. label000003CE:
  376. 000003CE  BC6E 000C                cmp.w      D6, [A6 + 0xC]
  377. 000003D2  660A                     bne        +0xC /* 000003DE */
  378. 000003D4  2F0C                     move.l     -[A7], A4
  379. 000003D6  3F3C 00FF                move.w     -[A7], 0xFF
  380. 000003DA  A95D                     syscall    HiliteControl
  381. 000003DC  6006                     bra        +0x8 /* 000003E4 */
  382. label000003DE:
  383. 000003DE  2F0C                     move.l     -[A7], A4
  384. 000003E0  4267                     clr.w      -[A7]
  385. 000003E2  A95D                     syscall    HiliteControl
  386. label000003E4:
  387. 000003E4  302E 000C                move.w     D0, [A6 + 0xC]
  388. 000003E8  B06E 000A                cmp.w      D0, [A6 + 0xA]
  389. 000003EC  660A                     bne        +0xC /* 000003F8 */
  390. 000003EE  2F0B                     move.l     -[A7], A3
  391. 000003F0  3F3C 00FF                move.w     -[A7], 0xFF
  392. 000003F4  A95D                     syscall    HiliteControl
  393. 000003F6  6006                     bra        +0x8 /* 000003FE */
  394. label000003F8:
  395. 000003F8  2F0B                     move.l     -[A7], A3
  396. 000003FA  4267                     clr.w      -[A7]
  397. 000003FC  A95D                     syscall    HiliteControl
  398. label000003FE:
  399. 000003FE  486E FFE8                pea.l      [A6 - 0x18]
  400. 00000402  A928                     syscall    InvalRect
  401. 00000404  2F2D F8AE                move.l     -[A7], [A5 - 0x752]
  402. 00000408  A922                     syscall    BeginUpdate
  403. 0000040A  486E FFE8                pea.l      [A6 - 0x18]
  404. 0000040E  A8A3                     syscall    EraseRect
  405. 00000410  594F                     subq.w     A7, 4
  406. 00000412  3F2E 000C                move.w     -[A7], [A6 + 0xC]
  407. 00000416  A9BC                     syscall    GetPicture
  408. 00000418  4267                     clr.w      -[A7]
  409. 0000041A  2F0E                     move.l     -[A7], A6
  410. 0000041C  4EBA FBE2                jsr        [PC - 0x41E /* 00000000 */]
  411. 00000420  2F2D F8AE                move.l     -[A7], [A5 - 0x752]
  412. 00000424  A969                     syscall    DrawControls
  413. 00000426  2F2D F8AE                move.l     -[A7], [A5 - 0x752]
  414. 0000042A  A923                     syscall    EndUpdate
  415. 0000042C  4247                     clr.w      D7
  416. 0000042E  42AE FFBC                clr.l      [A6 - 0x44]
  417. label00000432:
  418. 00000432  A9B4                     syscall    SystemTask
  419. 00000434  554F                     subq.w     A7, 2
  420. 00000436  3F3C 0002                move.w     -[A7], 0x2
  421. 0000043A  486E FFC4                pea.l      [A6 - 0x3C]
  422. 0000043E  A970                     syscall    GetNextEvent
  423. 00000440  4A1F                     tst.b      [A7]+
  424. 00000442  6762                     beq        +0x64 /* 000004A6 */
  425. 00000444  554F                     subq.w     A7, 2
  426. 00000446  2F2E FFCE                move.l     -[A7], [A6 - 0x32]
  427. 0000044A  486E FFC0                pea.l      [A6 - 0x40]
  428. 0000044E  A92C                     syscall    FindWindow
  429. 00000450  0C5F 0003                cmpi.w     [A7]+, 0x3
  430. 00000454  57C0                     seq        D0
  431. 00000456  4A00                     tst.b      D0
  432. 00000458  670C                     beq        +0xE /* 00000466 */
  433. 0000045A  202E FFC0                move.l     D0, [A6 - 0x40]
  434. 0000045E  B0AD F8AE                cmp.l      D0, [A5 - 0x752]
  435. 00000462  57C0                     seq        D0
  436. 00000464  4A00                     tst.b      D0
  437. label00000466:
  438. 00000466  6738                     beq        +0x3A /* 000004A0 */
  439. 00000468  3F3C 0004                move.w     -[A7], 0x4
  440. 0000046C  4267                     clr.w      -[A7]
  441. 0000046E  201F                     move.l     D0, [A7]+
  442. 00000470  A032                     syscall    FlushEvents
  443. 00000472  486E FFCE                pea.l      [A6 - 0x32]
  444. 00000476  A871                     syscall    GlobalToLocal
  445. 00000478  554F                     subq.w     A7, 2
  446. 0000047A  2F2E FFCE                move.l     -[A7], [A6 - 0x32]
  447. 0000047E  2F2D F8AE                move.l     -[A7], [A5 - 0x752]
  448. 00000482  486E FFBC                pea.l      [A6 - 0x44]
  449. 00000486  A96C                     syscall    FindControl
  450. 00000488  0C5F 000A                cmpi.w     [A7]+, 0xA /* '\n' */
  451. 0000048C  6618                     bne        +0x1A /* 000004A6 */
  452. 0000048E  554F                     subq.w     A7, 2
  453. 00000490  2F2E FFBC                move.l     -[A7], [A6 - 0x44]
  454. 00000494  2F2E FFCE                move.l     -[A7], [A6 - 0x32]
  455. 00000498  42A7                     clr.l      -[A7]
  456. 0000049A  A968                     syscall    TrackControl
  457. 0000049C  3E1F                     move.w     D7, [A7]+
  458. 0000049E  6006                     bra        +0x8 /* 000004A6 */
  459. label000004A0:
  460. 000004A0  3F3C 0001                move.w     -[A7], 0x1
  461. 000004A4  A9C8                     syscall    SysBeep
  462. label000004A6:
  463. 000004A6  554F                     subq.w     A7, 2
  464. 000004A8  3F3C 0008                move.w     -[A7], 0x8
  465. 000004AC  486E FFC4                pea.l      [A6 - 0x3C]
  466. 000004B0  A970                     syscall    GetNextEvent
  467. 000004B2  101F                     move.b     D0, [A7]+
  468. 000004B4  6722                     beq        +0x24 /* 000004D8 */
  469. 000004B6  202E FFC6                move.l     D0, [A6 - 0x3A]
  470. 000004BA  0280 0000 00FF           andi.l     D0, 0xFF
  471. 000004C0  720D                     moveq.l    D1, 0x0D
  472. 000004C2  B081                     cmp.l      D0, D1
  473. 000004C4  57C0                     seq        D0
  474. 000004C6  222E FFC6                move.l     D1, [A6 - 0x3A]
  475. 000004CA  0281 0000 00FF           andi.l     D1, 0xFF
  476. 000004D0  5781                     subq.l     D1, 3
  477. 000004D2  57C1                     seq        D1
  478. 000004D4  8001                     or.b       D0, D1
  479. 000004D6  4400                     neg.b      D0
  480. label000004D8:
  481. 000004D8  671C                     beq        +0x1E /* 000004F6 */
  482. 000004DA  BC6E 000C                cmp.w      D6, [A6 + 0xC]
  483. 000004DE  6706                     beq        +0x8 /* 000004E6 */
  484. 000004E0  2D4C FFBC                move.l     [A6 - 0x44], A4
  485. 000004E4  6004                     bra        +0x6 /* 000004EA */
  486. label000004E6:
  487. 000004E6  2D4A FFBC                move.l     [A6 - 0x44], A2
  488. label000004EA:
  489. 000004EA  2F2E FFBC                move.l     -[A7], [A6 - 0x44]
  490. 000004EE  3F3C 0001                move.w     -[A7], 0x1
  491. 000004F2  A95D                     syscall    HiliteControl
  492. 000004F4  7E0A                     moveq.l    D7, 0x0A
  493. label000004F6:
  494. 000004F6  0C47 000A                cmpi.w     D7, 0xA /* '\n' */
  495. 000004FA  57C0                     seq        D0
  496. 000004FC  2F00                     move.l     -[A7], D0
  497. 000004FE  554F                     subq.w     A7, 2
  498. 00000500  3F3C 0040                move.w     -[A7], 0x40 /* '@' */
  499. 00000504  486E FFC4                pea.l      [A6 - 0x3C]
  500. 00000508  A970                     syscall    GetNextEvent
  501. 0000050A  121F                     move.b     D1, [A7]+
  502. 0000050C  201F                     move.l     D0, [A7]+
  503. 0000050E  4400                     neg.b      D0
  504. 00000510  8001                     or.b       D0, D1
  505. 00000512  6700 FF1E                beq        -0xE0 /* 00000432 */
  506. 00000516  202E FFBC                move.l     D0, [A6 - 0x44]
  507. 0000051A  B08C                     cmp.l      D0, A4
  508. 0000051C  660C                     bne        +0xE /* 0000052A */
  509. 0000051E  302E 000C                move.w     D0, [A6 + 0xC]
  510. 00000522  5240                     addq.w     D0, 1
  511. 00000524  3D40 000C                move.w     [A6 + 0xC], D0
  512. 00000528  603C                     bra        +0x3E /* 00000566 */
  513. label0000052A:
  514. 0000052A  202E FFBC                move.l     D0, [A6 - 0x44]
  515. 0000052E  B08B                     cmp.l      D0, A3
  516. 00000530  660C                     bne        +0xE /* 0000053E */
  517. 00000532  302E 000C                move.w     D0, [A6 + 0xC]
  518. 00000536  5340                     subq.w     D0, 1
  519. 00000538  3D40 000C                move.w     [A6 + 0xC], D0
  520. 0000053C  6028                     bra        +0x2A /* 00000566 */
  521. label0000053E:
  522. 0000053E  B8AE FFBC                cmp.l      D4, [A6 - 0x44]
  523. 00000542  6610                     bne        +0x12 /* 00000554 */
  524. 00000544  3F2E 000C                move.w     -[A7], [A6 + 0xC]
  525. 00000548  3F2E 000C                move.w     -[A7], [A6 + 0xC]
  526. 0000054C  2F0E                     move.l     -[A7], A6
  527. 0000054E  4EBA FB34                jsr        [PC - 0x4CC /* 00000084 */]
  528. 00000552  6012                     bra        +0x14 /* 00000566 */
  529. label00000554:
  530. 00000554  BAAE FFBC                cmp.l      D5, [A6 - 0x44]
  531. 00000558  660C                     bne        +0xE /* 00000566 */
  532. 0000055A  3F2E 000A                move.w     -[A7], [A6 + 0xA]
  533. 0000055E  3F06                     move.w     -[A7], D6
  534. 00000560  2F0E                     move.l     -[A7], A6
  535. 00000562  4EBA FB20                jsr        [PC - 0x4E0 /* 00000084 */]
  536. label00000566:
  537. 00000566  202E FFBC                move.l     D0, [A6 - 0x44]
  538. 0000056A  B08A                     cmp.l      D0, A2
  539. 0000056C  6600 FE60                bne        -0x19E /* 000003CE */
  540. 00000570  2F0C                     move.l     -[A7], A4
  541. 00000572  A955                     syscall    DisposeControl
  542. 00000574  2F0B                     move.l     -[A7], A3
  543. 00000576  A955                     syscall    DisposeControl
  544. 00000578  2F04                     move.l     -[A7], D4
  545. 0000057A  A955                     syscall    DisposeControl
  546. 0000057C  2F05                     move.l     -[A7], D5
  547. 0000057E  A955                     syscall    DisposeControl
  548. 00000580  2F0A                     move.l     -[A7], A2
  549. 00000582  A955                     syscall    DisposeControl
  550. 00000584  2F2E FFB6                move.l     -[A7], [A6 - 0x4A]
  551. 00000588  A914                     syscall    DisposeWindow
  552. 0000058A  554F                     subq.w     A7, 2
  553. 0000058C  3F3C 0100                move.w     -[A7], 0x100
  554. 00000590  486E FFC4                pea.l      [A6 - 0x3C]
  555. 00000594  A970                     syscall    GetNextEvent
  556. 00000596  161F                     move.b     D3, [A7]+
  557. 00000598  554F                     subq.w     A7, 2
  558. 0000059A  3F3C 0100                move.w     -[A7], 0x100
  559. 0000059E  486E FFC4                pea.l      [A6 - 0x3C]
  560. 000005A2  A970                     syscall    GetNextEvent
  561. 000005A4  161F                     move.b     D3, [A7]+
  562. 000005A6  4CDF 1CF8                movem.l    D3,D4,D5,D6,D7,A2,A3,A4, [A7]+
  563. 000005AA  4E5E                     unlink     A6
  564. 000005AC  205F                     movea.l    A0, [A7]+
  565. 000005AE  5C4F                     addq.w     A7, 6
  566. 000005B0  4ED0                     jmp        [A0]
  567. 000005B2  0012 0444                ori.b      [A2], 0x44 /* 'D' */
  568. 000005B6  6F6E                     ble        +0x70 /* 00000626 */
  569. 000005B8  6512                     bcs        +0x14 /* 000005CC */
  570. 000005BA  0950                     bchg       [A0], D4
  571. 000005BC  7269                     moveq.l    D1, 0x69
  572. 000005BE  6E74                     bgt        +0x76 /* 00000634 */
  573. 000005C0  2041                     movea.l    A0, D1
  574. 000005C2  6C6C                     bge        +0x6E /* 00000630 */
  575. 000005C4  0550                     bchg       [A0], D2
  576. 000005C6  7269                     moveq.l    D1, 0x69
  577. 000005C8  6E74                     bgt        +0x76 /* 0000063E */
  578. 000005CA  0850 7265                bchg.b     [A0], 0x65 /* 'e' */
  579. // begin alternate branch 000005CC-000005CE
  580. label000005CC:
  581. 000005CC  7265                     moveq.l    D1, 0x65
  582. // end alternate branch 000005CC-000005CE
  583. label000005CC: // (misaligned)
  584. 000005CE  7669                     moveq.l    D3, 0x69
  585. 000005D0  6F75                     ble        +0x77 /* 00000647 */
  586. 000005D2  7312                     moveq.l    D1, 0x12
  587. 000005D4  044E 6578                subi.w     A6, 0x6578 /* 'ex' */
  588. 000005D8  7412                     moveq.l    D2, 0x12
  589.